package com.yulinlin.admin.modules.im.domain;

import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.admin.modules.im.domain.enums.ImSessionEnums;
import com.yulinlin.admin.modules.im.domain.enums.ImSessionUserEnums;
import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("会话用户")
@JoinTable("im_session_user")
public class ImSessionUserEntity extends SuperEntity<ImSessionUserEntity>  {









        @NotEmpty(message = "必填")
        @ApiModelProperty("会话id")
        @JoinWhere
        @JoinField
        private String imSessionId;





        @NotEmpty(message = "必填")
        @ApiModelProperty("用户id")
        @JoinWhere
        @JoinField
        private String userId;





        @NotEmpty(message = "必填")
        @ApiModelProperty("角色 群主 管理员 成员")
        @JoinWhere
        @JoinField
        private ImSessionUserEnums.role role;



        @NotEmpty(message = "必填")
        @ApiModelProperty("名称")
        @JoinWhere
        @JoinField
        private String nickname;


















}
